<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<head>
		<title>My Facelets Page</title>
		<meta http-equiv="keywords" content="enter,your,keywords,here" />
		<meta http-equiv="description"
			content="A short description of this page." />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

		<!--<link rel="stylesheet" type="text/css" href="styles.css">-->
	</head>
	<body>
		<p>
			<f:view locale="#{nation.localLanguage}">
			<f:loadBundle var="msg" basename="messages" />
			<h:form>
			<ui:insert name="body">
				<h:outputText value="#{msg.username}"></h:outputText>
				<h:inputText></h:inputText>	<br/>
				<h:outputText value="#{msg.password}"></h:outputText>
				<h:inputText></h:inputText>
				<br/>
				
				<h:selectOneMenu value="#{nation.localLanguage}">
					<f:selectItem itemLabel="中文" itemValue="zh_CN"/>
					<f:selectItem itemLabel="English" itemValue="en"/>
				</h:selectOneMenu>
				<br/>
				<h:commandButton value="#{msg.button}" action="#{nation.localChange}"/>
				
			</ui:insert>
			</h:form>
			</f:view>
		</p>
	</body>
</html>
